#include "common.h"
#include "font.h"
#include "atlas.h"

int main(int ac, char *av[])
{
	if (ac < 5)
	{
		printf("Usage: %s <font> <charsize> <outline> <texsize> <output>\n", *av);
		return 1;
	}
	
	font_desc_t *desc = font_create(av[1], atoi(av[2]), atoi(av[3]), atoi(av[4]), atoi(av[4]));
	
	if (desc == NULL)
		return 2;
	
	font_save(desc, av[5]);
	font_destroy(desc);
	
	return 0;
}
